/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.catalogoIncidenteDAO;
import escom.ipn.modelo.dao.UsuarioDAO;
import escom.ipn.modelo.dto.catalogoIncidenteClass;
import escom.ipn.modelo.dto.Usuario;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class catalogoIncidenteFacade {
    private Connection cnn;
    private catalogoIncidenteDAO dao;
    
    public catalogoIncidenteFacade (Connection cnn){
        this.cnn = cnn;
        dao = new catalogoIncidenteDAO();
    }
    
    public List listarCatalogoIncidentes() throws SQLException{
        return dao.loadCatalogoIncidentes(cnn);
    }
    
    public catalogoIncidenteClass leerIdCatalogoIncidente(catalogoIncidenteClass a)
            throws SQLException{
        return dao.loadIdCatalogoIncidente(a, cnn);
    }
    
    public catalogoIncidenteClass leerIncidenteCatalogoIncidente(catalogoIncidenteClass a)
            throws SQLException{
        return dao.loadIncidenteCatalogoIncidente(a, cnn);
    }
    
    public catalogoIncidenteClass leerTipoIncidenteID(int a)
            throws SQLException{
        return dao.loadTipoIncidenteID(a, cnn);
    }
}
